<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/4/1
 * Time: 12:54
 */

class FlowService extends BaseService
{
    private $confModel;
    private $orderModel;
    private $userInfoModel;
    private $mUser;

    public function _initialize()
    {
        parent::_initialize();
        $this->mUser = D("User");
    }
    
    /**
     * 获得基础信息
     * @param type $accountId
     */
    public function getBaseInfo($userId,$accountId)
    {
        $map = array(
            'account_id' => $accountId,
            'user_id' => $userId
        );
        return $this->mUser->where($map)->find();//查询用户基本信息
    }
    
    /**
     * 检查是否可以添加
     */
    public function checkJoin($userId,$accountId)
    {
        //按流程图来


    }
    
    /**
 * 创建订单
 */
    public function createOrder()
    {

    }
    
    /**
     * 支付
     */
    public function pay()
    {
        
    }
}